using System;
using System.Reflection;
using MicroContainer;
using Microsoft.SPOT;

namespace ConsoleDemo
{
   public class Program
   {      
      public delegate object Creator();

      public static void Main()
      {
         IMicroContainer cnt = ContainerConfig.CreateContainer(null);
         IComponentB b = (IComponentB) cnt.Resolve(typeof (IComponentB), null);
         b.DoSomething();
         b = (IComponentB)cnt.Resolve(typeof(IComponentB), null);
         b.DoSomething();
      }


      private static object A(Creator func)
      {
         return func();
      }

   }   
}
